<?php
$id				= gpc_getIntPost("id",$id);

$FullName	        = gpc_getStringPost("FullName");
$Subject        = gpc_getStringPost("Subject");
$Email  		= gpc_getStringPost("Email");

$Status 		= gpc_getIntPost("Status");
$Comment 	    = gpc_getStringPost("Comment");

if(empty($Subject))
{
	error_transfer("Name is Subject!");
}


if($id>0)
{
    $sql_update = "update tblreview set
                    cName           = '$Subject',
                    cEmail          = '$Email',
                    cFullName       = '$FullName',
                    iStatus         = '$Status',
                    cComment        = '$Comment'
                where iId           = '$id'";
    $dbsql->query($sql_update);
    
    $pagetr     = getUrlBack();
    page_transfer("Update review Success",$pagetr);
}
exit();
?>